package vip.xiaonuo.modular.param;

import vip.xiaonuo.core.pojo.base.param.BaseParam;
import lombok.Data;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotBlank;
import java.util.*;

/**
* modular参数类
 *
 * @author 春非昔日春
 * @date 2023-03-08 17:33:57
*/
@Data
public class ZhuanyeParam extends BaseParam {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空，请检查id参数", groups = {edit.class, delete.class, detail.class})
    private Long id;

    /**
     * 专业名称
     */
    @NotBlank(message = "专业名称不能为空，请检查name参数", groups = {add.class, edit.class})
    private String name;

    /**
     * 专业简介
     */
    @NotBlank(message = "专业简介不能为空，请检查introduction参数", groups = {add.class, edit.class})
    private String introduction;

    /**
     * 系主任
     */
    @NotBlank(message = "系主任不能为空，请检查president参数", groups = {add.class, edit.class})
    private String president;

}
